<!DOCTYPE html>

<head>
    <meta charset="UTF-8">


    </style>
    <script src="../jQuery-3.6.3.min.js"> </script>
    <script>
        $(function () {
    $('span').wrapInner("<p></p>");
    alert($('span').html())
        })
    </script>
</head>

<body>
    <div>
        <span>1</span>

    </div>

</body>

</html>